<?php

/**
 * Created by EPP.
 * User: yuxun
 * Date: 18/6/26
 * Time: 21:21
 */
class ResourceApplyController extends AdminBaseController {

    public function index(){
        $this->setTitle('资源申请列表');

        $filter = new PubFilter();
        $grid   = new PubGrid();
     
        $filter->addOssServer();
        $filter->addFilter('apply', 'input', '申请人');
           
        $params = $filter->get();
        $header = ResourceApplyService::indexHeader();
        $data   = ResourceApplyService::indexData($params);
        
        $grid->addGrid($header, $data);

        $this->out['filter'] = $filter->show();
        $this->out['grid'] = $grid->show();
        
    }
    
    
    public function add(){
    	$this->setTitle('资源申请');
    	$this->out['serverList']    = ServerService::getOptions();
    }
    
    
    
    

    

}